package cn.hairui.blog.repository;

import cn.hairui.blog.mapper.WhisperMapper;
import cn.hairui.blog.model.Whisper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author lihairui
 * @version V1.0
 * @date: 2019/8/3 1:05
 */
@Repository
public class WhisperRepository {

    @Autowired
    private WhisperMapper whisperMapper;

    public List<Whisper> findGust() {
        return whisperMapper.findGust();
    }

    public List<Whisper> list() {
        return whisperMapper.list();
    }

    public List<Map> findMessageByWhisperId(int whisperId) {
        return whisperMapper.findMessageByWhisperId(whisperId);
    }
}
